/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pigx.contract.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.pig4cloud.pigx.common.customize.utils.serializer.BigDecimalToPlainStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 *
 *
 * @author pigx code generator
 * @date 2022-09-07 17:41:00
 */
@Data
@TableName("ripple_contract_symbol_hierarchy")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "")
public class RippleContractSymbolHierarchy extends Model<RippleContractSymbolHierarchy> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="主键")
    private Long id;

    /**
     * 币对id
     */
    @ApiModelProperty(value="币对id")
    private Long symbolId;

    /**
     * 币对名称
     */
    @ApiModelProperty(value="币对名称")
    private String symbolName;

    /**
     * 层级
     */
    @ApiModelProperty(value="层级")
    private Integer hierarchy;

    /**
     * 最低杠杆倍数
     */
    @ApiModelProperty(value="最低杠杆倍数")
    private Integer startMultiple;

    /**
     * 最高杠杆倍数
     */
    @ApiModelProperty(value="最高杠杆倍数")
    private Integer endMultiple;

	/**
	 * 最低持仓量(币本位数量)
	 */
    @ApiModelProperty(value="最低持仓量(币本位数量)")
	@JsonSerialize(using = BigDecimalToPlainStringSerializer.class)
    private BigDecimal minPosition;

	/**
	 * 最高持仓量(币本位数量)
	 */
    @ApiModelProperty(value="最高持仓量(币本位数量)")
	@JsonSerialize(using = BigDecimalToPlainStringSerializer.class)
    private BigDecimal maxPosition;

    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;

    /**
     * 创建人
     */
    @ApiModelProperty(value="创建人")
    private Long createBy;

    /**
     * 修改时间
     */
    @ApiModelProperty(value="修改时间")
    private LocalDateTime updateTime;

    /**
     * 修改人
     */
    @ApiModelProperty(value="修改人")
    private Long updateBy;

    /**
     * 是否删除（null是、0否）
     */
    @ApiModelProperty(value="是否删除（null是、0否）")
    private String isDeleted;

}
